package com.dmp.common;

public class ECGIUtil {

	public static long getEnodebId(String ecgiStr) {
		String ecgi = ecgiStr.trim().substring(5);
		long ecgiLong = Long.parseLong(ecgi);
		// 左移8位
		return ecgiLong >>> 8;
	}

	public static long getCellId(String ecgiStr) {
		String ecgi = ecgiStr.trim().substring(5);
		long ecgiLong = Long.parseLong(ecgi);
		// 取后8位
		return ecgiLong & 0xff;
	}
}
